package com.aliyun.messagemgt.service.impl;

import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * Created with IDEA
 *
 * @author:zhangxingxing 0027012120
 * @date:2019/4/16
 * @time:10:41
 */
@SpringBootTest
@RunWith(SpringRunner.class)
public class ChannelNoServerImplTest extends AbstractTransactionalJUnit4SpringContextTests {

   /* @Autowired
    private ChannelNoServer channelNoServer;
    @Resource
    private ChannelNoMapper channelNoMapper;

    @Test
    public void listChannelNoTest() {
        ChannelNoQuery channelNoQuery = new ChannelNoQuery();
        Object o = channelNoServer.listChannelNo(channelNoQuery);
    }

    @Test
    public void delChannelNoTest() {
        ChannelNoQuery channelNoQuery = new ChannelNoQuery();
        channelNoQuery.setChannelUserId(102946);
        Object o = channelNoServer.delChannelNo(channelNoQuery);
    }

    @Test
    public void hiddenChannelNoTest() {
        ChannelNoQuery channelNoQuery = new ChannelNoQuery();
        channelNoQuery.setChannelUserId(102946);
        channelNoQuery.setHiddenState(1);
        Object o = channelNoServer.hiddenChannelNo(channelNoQuery);
    }

    @Test
    public void modChannelNoTest() {
        ChannelNo channelNo = new ChannelNo();
        channelNo.setChannelUserId(102946L);
        channelNo.setCustomEmail("2214324");
        Object o = channelNoServer.modChannelNo(channelNo);
    }

    @Test
    public void detailChannelNoTest() {
        ChannelNoQuery channelNoQuery = new ChannelNoQuery();
        channelNoQuery.setChannelUserId(102946);
        Object o = channelNoServer.detailChannelNo(channelNoQuery);
    }

    @Test
    public void inExcelTest() {
        boolean flag = true;
        byte[] content = new byte[2];
        content[0] = 1;
        content[1] = 2;
        MockMultipartFile mockMultipartFile = new MockMultipartFile("java", content);
        try {
            Object o = channelNoServer.inExcel(mockMultipartFile);
        } catch (Exception e) {
            flag = false;
        }
        Assert.assertFalse(flag);
    }*/
}